﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace UtilsORM.MySqlData;

[Index("vl_guid", Name = "idxdclguid")]
[Index("vl_d_guid", Name = "idxdguid")]
[MySqlCharSet("utf8mb3")]
[MySqlCollation("utf8mb3_general_ci")]
public partial class iot_device_value_log
{
    [Key]
    public long vl_id { get; set; }

    [StringLength(50)]
    public string vl_guid { get; set; }

    [StringLength(50)]
    public string vl_d_guid { get; set; }

    /// <summary>
    /// 值key
    /// </summary>
    [StringLength(100)]
    public string vl_key { get; set; }

    /// <summary>
    /// 值value
    /// </summary>
    [StringLength(100)]
    public string vl_value { get; set; }

    [Column(TypeName = "datetime")]
    public DateTime vl_add_time { get; set; }

    /// <summary>
    /// 说明
    /// </summary>
    [StringLength(255)]
    public string vl_remark { get; set; }

    /// <summary>
    /// 名称
    /// </summary>
    [StringLength(255)]
    public string vl_name { get; set; }
}
